package com.unipay.spring.factory;

import com.unipay.spring.pojo.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * @BelongsProject: SSM
 * @Author: cmy
 * @CreateTime: 2023-01-15  22:03
 * @Description: TODO
 */

public class UserFactoryBean implements FactoryBean<User> {
    @Override
    public User getObject() throws Exception {
        return new User();
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }

    @Override
    public boolean isSingleton() {
        return FactoryBean.super.isSingleton();
    }
}
